package com.yuw.overridedemo3;

public class Cat extends Animal{

	String animalName = "cat";
	
	
	
	
	@Override
	public void doEating() {
		System.out.println("子类中执行：");
		System.out.println(this.animalName + " is eating...");
	}




	// 子类新增的方法，子类新扩展的方法
	/**
	 * 捕猎
	 * 
	 * @return 捕获的猎物数量
	 */
	public void doCatching() {
		System.out.println("捕猎");
	}
	
	
}
